-- GENERATED SPELL FOR [Webwood Silkspinner] --


function spell0_2000(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(12023,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2000', 5252, 1)
end

function Sorts_2000(pUnit, Event)
local choix_sorts_2000 = math.random(0, 0)
if choix_sorts_2000 == 0 then
pUnit:RegisterEvent('spell0_2000', 1, 1)
end
end

function mob2000_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2000', math.random(1500, 3000), 1)
end

function mob2000_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2000_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2000_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2000, 1, 'mob2000_Action')
RegisterUnitEvent(2000, 2, 'mob2000_Leave')
RegisterUnitEvent(2000, 3, 'mob2000_Kill')
RegisterUnitEvent(2000, 4, 'mob2000_Die')
